package com.controller;


<<<<<<< HEAD
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.entity.ResumeWorkExperience;
import com.entity.ScreenResume;

import com.service.ScreenResumeService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiImplicitParam;
import io.swagger.annotations.ApiImplicitParams;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import java.util.List;
=======
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;
>>>>>>> 784072f6c3135fcc1cd41893f32c7972e4abb8b2

/**
 * <p>
 * 简历评估表 前端控制器
 * </p>
 *
 * @author Damon
 * @since 2021-04-26
 */
@RestController
@RequestMapping("/screen-resume")
<<<<<<< HEAD
@Api(value = "ScreenResumeController", tags = {"简历评估接口"})
public class ScreenResumeController {
    @Autowired
    private ScreenResumeService screenResumeService;

    @RequestMapping("/listAll")
    @ApiOperation(value = "简历评估全部信息listAll", notes = "简历评估信息listAll", httpMethod = "POST")
    public List<ScreenResume> listAll(){
        List<ScreenResume> list = screenResumeService.list();
        return list;
    }


    @RequestMapping("/list")
    @ApiOperation(value="简历评估信息list",notes="简历评估信息list",httpMethod = "GET")
    public List<ScreenResume> list(String user_key){
        List<ScreenResume> list = screenResumeService.seek(user_key);
        return list;
    }

    //支持新增或修改  Post提交  /emp/edit
    @RequestMapping("/edit")
    @PostMapping("/edit")
    @ApiOperation(value = "评价简历edit", notes = "评价简历", httpMethod = "POST")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "screenKey", value = "简历Id", required = true, dataType = "string"),
    })
    public boolean edit(@RequestBody ScreenResume screenResume){

        boolean res=false;
            //修改
        res = screenResumeService.updateById(screenResume);
        return res;
    }

    @RequestMapping("/getById")
    @GetMapping("/getById")
    @ApiOperation(value = "查询简历评估信息getById", notes = "简历信息", httpMethod = "GET")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "screenKey", value = "简历Id", required = true, dataType = "string"),
    })
    public ScreenResume getById(String screenKey){
        return screenResumeService.getById(screenKey);
    }
=======
public class ScreenResumeController {

>>>>>>> 784072f6c3135fcc1cd41893f32c7972e4abb8b2
}

